﻿namespace NEnsure.Rules
{
	public class USPhoneRule : RegexRule
	{
		public override string RuleKey
		{
			get { return "US Phone Rule"; }
		}

		public USPhoneRule()
			: base(@"^((\d{3}[\-. ]?)?\d{3}[\-. ]?\d{4})?$", "{value} is not a valid phone. It should be of format 123-456-7890")
		{

		}
	}
}
